<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="js/jquery-1.11.0.min.js"></script>
</head>
<body>

<input type="button" id="findAll" value="查询全部">
</body>

<script>
    $("#findAll").click(function (){
        //查询全部
        let url = "/user?action=findAll"
        let params = {}
        $.get(url,params,function (userList){
            $.each(userList,function (idx,user){
                alert(user.name)
            });
        },"json");
    });
</script>

</html>